'use strict'

const { InvalidQueryError } = require('../lib/error');
const questionaireServices = require('../services').questionaire;

const questionaire = {
  async saveQuestionaire(ctx, next) {
    const params = ctx.request.body;
    const res = await questionaireServices.saveQuestionaire(params);
    ctx.result = res;
    return next();
  },
}

module.exports = questionaire